package com.restaurant.application.customer.support;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.View;
import com.nebutown.generation.basictype.UID;
import com.nebutown.supporthome.AbstractBase;
import com.restaurant.application.customer.Customer;
import com.restaurant.application.indexes.customerlist.mysql.CustomerListBean;
import com.restaurant.application.minifacade.data.MainBO;
import com.restaurant.application.minifacade.data.PersonBO;

public class CustomerOutFace implements Customer {
    private CustomerBase base;

    public CustomerOutFace(CustomerBase base) {
        this.base = base;
    }

    public AbstractBase getBase() {
        return this.base;
    }

    @Override
    public String update(CustomerData arg0) {
        return (String)base.call("update", arg0);
    }

    @Override
    public String init(CustomerData arg0) {
        return (String)base.call("init", arg0);
    }

    @Override
    public PersonBO getPersonBO() {
        return (PersonBO)base.call("getPersonBO");
    }

    @Override
    public CustomerData findData() {
        return (CustomerData) base.call("findData");
    }

    @Override
    public String minusScores(int arg0) {
        return (String) base.call("minusScores", arg0);
    }

    @Override
    public void plusScores(int arg0) {
        base.call("plusScores", arg0);
    }

    @Override
    public MainBO getMainBO() {
        return (MainBO) base.call("getMainBO");
    }

    @Override
    public UID getId() {
        return (UID)base.call("getId");
    }

    @Override
    public View getFullView() {
        return (View) base.call("getFullView");
    }

    @Override
    public View getViewLead(ViewSpec arg0) {
        return (View)base.call("getViewLead", arg0);
    }

    @Override
    public Class getEffectiveInterface() {
        return (Class) base.call("getEffectiveInterface");
    }

    @Override
    public CustomerListBean getCustomerUidDataForCustomerList(CustomerListBean arg0) {
        return (CustomerListBean)base.call("getCustomerUidDataForCustomerList", arg0);
    }
}
